﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Reflection;
using Pixysoft.Weblications.Sango.Protocol.section;
using Pixysoft.Weblications.Sango.Dao;
using Pixysoft.Weblications.Sango.Protocol;

namespace Pixysoft.Weblications.Sango.Command.section_rvr
{
    partial class SangoSectionRvrHandler
    {
        public sectionrvr_resultlist sectionrvr_resultlist()
        {
            string userCode = SangoManager.Authentication();
            sectionrvr_resultlist response = ReflectionManager.CreatePojo<sectionrvr_resultlist>();
            response.Succeed = false;

            response.rvrs = UsrSectionFacade.ToSectionBattles(UsrSectionBattleDao.GetSectionBattles(userCode));
            response.Succeed = true;
            return response;
        }
    }

    public interface sectionrvr_resultlist : ISangoResponse
    {
        List<section_rvrbattle> rvrs { get;set;}
    }
}
